import React from 'react'
import ServiceCreation from './service_creation.js'
import TableController from '../widget/table_controller'
import DataTable from '../widget/data-table'

const Service = (props) => (
    <TableController routes={[
        {
            path: props.match.url + '/service',
            name: '服务号创建',
            component: ServiceCreation,
            api: '/service'
        },
        {
            path: props.match.url + '/table',
            name: '服务号数据',
            component: DataTable,
            api: '/service',
            api_comments: '/service/comments',
            btns: 'deleteBtn'
        }
    ]} />
)

export default Service;